﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForm/MasterPage.master" AutoEventWireup="true"
    CodeFile="ManageUser.aspx.cs" Inherits="WebForm_ManageUser_ManageUser" %>

<%@ Register Src="ucQueryUser.ascx" TagName="ucQueryUser" TagPrefix="My" %>
<%@ Register Src="ucEditUser.ascx" TagName="ucEditUser" TagPrefix="My" %>
<%@ Register Src="~/WebForm/ListControl/SearchCodeMapping.ascx" TagName="SearchCodeMapping"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/AddControl/AddCodeMapping.ascx" TagName="AddCodeMapping"
    TagPrefix="My" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div align="right">
    <asp:LinkButton ID="lbtnAdd" runat="server" Text="<%$ Resources:AddUser %>" 
        onclick="lbtnAdd_Click"></asp:LinkButton>&nbsp;
    <asp:HyperLink ID="hlinkDescription" SkinID="Description" runat="server" NavigateUrl="~/Public/Description/ManageUser.html"></asp:HyperLink>
</div>
    <ajaxToolkit:TabContainer ID="TabContainer1" ActiveTabIndex="0" AutoPostBack="false"
        runat="server">
        <ajaxToolkit:TabPanel ID="QueryUserTabPanel" HeaderText="<%$ Resources:QueryUser %>"
            runat="server">
            <ContentTemplate>
                <My:ucQueryUser ID="ucQueryUser1" OnGoDelete="GoDelete" OnGoEdit="GoEdit" runat="server" />
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel ID="EditUserTabPanel"  HeaderText="<%$ Resources:AddUser %>"
            runat="server">
            <ContentTemplate>
                <My:ucEditUser ID="ucEditUser1" OnGoSaved="GoSaved" runat="server" />
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel ID="PropertyTabPanel" HeaderText="屬性定義管理" runat="server">
            <ContentTemplate>
                <asp:MultiView ID="mvProperty" runat="server" ActiveViewIndex="0">
                    <asp:View ID="vwSearchProperty" runat="server">
                        <table width="100%">
                            <tr>
                                <td align="left">
                                    <asp:LinkButton ID="lknAddProperty" runat="server" Text="新增" OnClick="lknAddProperty_Click"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        <My:SearchCodeMapping ID="SearchProperty1" runat="server" TableName="EmployeeProperty" ColumnName="PropertyName"
                            meta:resourcekey="SearchProperty1" OnEditing="SearchProperty1_Editing" />
                    </asp:View>
                    <asp:View ID="vwAddProperty" runat="server">
                        <table width="100%">
                            <tr>
                                <td align="left">
                                    <asp:LinkButton ID="lknSearchProperty" runat="server" Text="返回列表" OnClick="lknSearchProperty_Click"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        <My:AddCodeMapping ID="AddProperty1" runat="server" TableName="EmployeeProperty" ColumnName="PropertyName" meta:resourcekey="AddProperty1" OnSaved="AddProperty1_Saved" />
                    </asp:View>
                </asp:MultiView>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
    </ajaxToolkit:TabContainer>    
</asp:Content>
